<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>动态粒子效果</title>

  <style>
    * {
      margin: 0;
      padding: 0;
    }
    body {
      background: linear-gradient(#0c336e, #355990) no-repeat;
      color: #fff;
      height: 100vh;
      padding: 20px;
      box-sizing: border-box;
    }

    li {
      list-style: none;
    }

    .list {
      display: flex;
      align-items: center;
      justify-content: space-around;
      width: 500px;
    }

    .list-item {
      position: relative;
      width: 200px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
    }

    .list-item p {
      width: 100px;
      line-height: 34px;
      text-align: center;
      font-size: 16px;
      color: #fff;
      white-space: nowrap;
      text-overflow: ellipsis;
      overflow: hidden;
    }

    .p-bg1 {
      background: url('../assets/images/bg1.png') no-repeat;
      background-size: 100% 100%;
    }

    .p-bg2 {
      background: url('../assets/images/bg2.png') no-repeat;
      background-size: 100% 100%;
    }

    .p-bg3 {
      background: url('../assets/images/bg3.png') no-repeat;
      background-size: 100% 100%;
    }

    .list-item-bottom {
      position: relative;
      /* width: 100%; */
      width: 134px;
      height: 112px;
      text-align: center;
      font-size: 14px;
      color: #fff;
      line-height: 98px;
      margin-top: 15px;
    }


    .val_unit {
      position: relative;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 55px;
      line-height: 20px;
      text-align: center;
    }

    b {
      font-family: DIN-Bold;
      font-size: 30px;
      text-shadow: 0 0 15px #fff;
    }

    i {
      font-style: normal;
      font-size: 16px;
    }

    .go-top li {
      position: absolute;
      left: 25%;
      top: 40%;
      width: 2px;
      height: 40px;
      animation: goTop 2s linear infinite;
    }

    .go-top .li-bg1 {
      background: linear-gradient(#e6f5e5 5%, #629f60, transparent);
    }

    .go-top .li-bg2 {
      background: linear-gradient(#e6f5e5 5%, #dd736f, transparent);
    }

    .go-top .li-bg3 {
      background: linear-gradient(#e6f5e5 5%, #dd736f, transparent);
    }

    .go-top li:nth-child(2) {
      left: 74%;
      animation-duration: 3s;
    }

    .go-top li:nth-child(3) {
      left: 60%;
      animation-duration: 1.5s;
    }

    .go-top li:nth-child(4) {
      left: 35%;
      animation-duration: 4s;
      opacity: 0.5;
    }

    .go-top li:nth-child(5) {
      left: 48%;
      animation-duration: 5s;
      opacity: 0.5;
    }


    .list-item-bottom-bg1 {
      background: url("../assets/images/bg11.png") no-repeat;
      background-size: 100% 100%;
    }

    .list-item-bottom-bg2 {
      background: url("../assets/images/bg22.png") no-repeat;
      background-size: 100% 100%;
    }

    .list-item-bottom-bg3 {
      background: url("../assets/images/bg33.png") no-repeat;
      background-size: 100% 100%;
    }

    @keyframes goTop {
      0% {
        transform: translateY(0);
      }

      100% {
        transform: translateY(-60px);
        opacity: 0;
      }
    }
  </style>
</head>

<body>
  <div class="list">
    <div class="list-item">
      <p class="p-bg1">年度目标</p>
      <div class="list-item-bottom list-item-bottom-bg1">
        <div class="val_unit">
          <b>35</b>
          <i> μg/m³</i>
        </div>
        <ul class="go-top">
          <li class="li-bg1"></li>
          <li class="li-bg1"></li>
          <li class="li-bg1"></li>
          <li class="li-bg1"></li>
          <li class="li-bg1"></li>
        </ul>
      </div>
    </div>
    <div class="list-item">
      <p class="p-bg2">截至目前均值</p>
      <div class="list-item-bottom list-item-bottom-bg2">
        <div class="val_unit">
          <b>40.2</b>
          <i> μg/m³</i>
        </div>
        <ul class="go-top">
          <li class="li-bg1"></li>
          <li class="li-bg1"></li>
          <li class="li-bg1"></li>
          <li class="li-bg1"></li>
          <li class="li-bg1"></li>
        </ul>
      </div>
    </div>
    <div class="list-item">
      <p class="p-bg3" title="剩余完成目标余量均值">剩余完成目标余量均值</p>
      <div class="list-item-bottom list-item-bottom-bg3">
        <div class="val_unit">
          <b>35</b>
          <i> μg/m³</i>
        </div>
        <ul class="go-top">
          <li class="li-bg1"></li>
          <li class="li-bg1"></li>
          <li class="li-bg1"></li>
          <li class="li-bg1"></li>
          <li class="li-bg1"></li>
        </ul>
      </div>
    </div>

  </div>
</body>

</html>